/**
 * 
 */
package lablayer.model;

import lablayer.model.MathComponents.MathComponent;
/**
 *
 */
public class ComponentFactory {	
	public static Componentable createComponent() {
		Componentable component = new Component();
		return component;
	}

	public static Componentable createComponent(MathComponent mathComponent) {
		try {
			assert mathComponent != null : "ComponentFactory.createComponent(MathComponent mathComponent) have a null pointer";
			
			Componentable component = new Component(mathComponent);
			return component;
		} catch (Exception e) {
			return null;
		}		
	}

}
